var webpack = require('webpack');

module.exports = {
    entry: "./src/Javascript/components/autocomplete/autocomplete_test.js",
    output: {
        path: "dist",
        filename: "bundle.js"
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                loader: "babel",
                query: {
                    presets: ['es2015', 'react','stage-0','stage-1'],
                }
            },
            {
                test: /\.css$/,
                loaders: ['style','css']
            },
            { test: /\.scss$/, loader: "style-loader!css-loader!sass-loader"}
        ]
    },
    devtool: "#inline-source-map",
    plugins: [
        new webpack.DefinePlugin({
            'process.env': {
                NODE_ENV: JSON.stringify('development')
            }
        })
    ]
};
